<?
#######################################################
# WebSam: Web Server Ascent Manager    	              #
# Website: http://websam.googlecode.com               #
#-----------------------------------------------------#
# Admin page: To check if you have the rights.        #
#-----------------------------------------------------#
# WebSam is a GPL V3 program, and can be used by      #
# anyone and can be edittedby anyone! 	              #
#-----------------------------------------------------#
# But we can ask for mods!         		              #
#                                  	                  #
#                                  	                  #
#######################################################
/* this is the main page of the installer script..    */
/* this script will edit the config files automaticly */
/* depending on what the user puts                    */
/* ************************************************** */

include ("../config.php";
$control=1;
$query = "SELECT rang FROM ".$table_prefix."users WHERE id='$id'";
$rang_query = mysql_query($query);
$rang = mysql_result($rang_query, 0);
if($rang != 'admin'){
    $controle=0;
    $title = "You don't have access here";
    $body = "<h1>$title</h1>
    Go back, you don't have any rights to be in this file!";
}
if($control==0){
    die("<html><head><title>$titel</title></head><body>$body</body></html>");
}
?>
